package com.example.springbootmybatisdemo.config;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description TODO
 * @Author: cdd
 * @Date: 2020/7/6 9:30
 * @Version: 1.0
 */
@Controller
public class RoleController {

    @GetMapping("/list")
//    @RequiresPermissions("role:admin")   // 有role:admin权限的可以访问
    @RequiresPermissions("role:visitor")  // 有role:visitor权限的可以访问
    public String list(){
        return "role/list";
    }
}
